#include <REGX52.H>
#include "LCD1602.h"
#include "MatrixKey.h"

unsigned char keyNumber = 0;

void main()
{
	LCD_Init();
	LCD_ShowString(1, 1, "HelloWorld");

	while(1)
	{
		keyNumber = getMatrixKey();
		if(keyNumber)
		{
			LCD_ShowNum(2, 1, keyNumber, 2);
		}
	}
}